package com.tofine.smarthome.adapter;

import android.support.v7.widget.SwitchCompat;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bignerdranch.expandablerecyclerview.ViewHolder.ChildViewHolder;
import com.daimajia.swipe.SwipeLayout;
import com.tofine.smarthome.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @author ddMax
 * @since 2016/5/22 19:32.
 */
public class DeviceViewHolder extends ChildViewHolder {
    @Bind(R.id.swipe) SwipeLayout swipeLayout;
    @Bind(R.id.favorite) ImageView favoriteView;
    @Bind(R.id.delete) ImageView deleteView;
    @Bind(R.id.device_item) RelativeLayout mItem;
    @Bind(R.id.device_image) ImageView mDeviceImage;
    @Bind(R.id.device_title) TextView mDeviceTitle;
    @Bind(R.id.device_switch) SwitchCompat mDeviceSwitch;

    public DeviceViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }
}
